#include "directory.h"

namespace Directory
{
    bool add(const QString &s)
    {
        if (directory_create(Globals::QStringToChar(s).data()) == RET_SUCCESS)
            return true;
        else
            return false;
    }

    bool del(const QString &s)
    {
        if (directory_remove(Globals::QStringToChar(s).data()) == RET_SUCCESS)
            return true;
        else
            return false;
    }

    bool cd(const QString &s)
    {
        if (mini_cd(Globals::QStringToChar(s).data()) > 0)
            return true;
        else
            return false;
    }
}
